package cn.iocoder.yudao.module.course.controller.admin.coursematerials.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 课程素材新增/修改 Request VO")
@Data
public class CourseMaterialsSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "23290")
    private Long id;

    @Schema(description = "课程ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28294")
    @NotNull(message = "课程ID不能为空")
    private Long courseId;

    @Schema(description = "素材ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30058")
    @NotNull(message = "素材ID不能为空")
    private Long materialId;

    @Schema(description = "素材在课程中的排序索引", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "素材在课程中的排序索引不能为空")
    private Integer orderIndex;

}